//路由表：工作小结及打分情况

const router = [
  {
    path: 'workSum',
    name: 'WorkSum',
    meta: {
      title: '工作小结及打分情况',
      icon: 'svg-summary',
      alwaysShow: true
    },
    children: [
      {
        path: 'config',
        component: 'systemManage/workSum/configPage/index',
        meta: { title: '配置' },
        name: 'WarkSumConfig'
      },
      {
        path: 'workSumManage',
        component: 'systemManage/workSum/workSumManage/index',
        name: 'WorkSumManage',
        meta: { title: '工作小结管理' }
      },
      {
        path: 'workSumManage/detail/:id/:title?',
        component: 'systemManage/workSum/workSumManage/detail',
        name: 'WorkSumManageDetail',
        meta: {
          title: '工作小结管理详情',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/workSum/workSumManage/',
          dynamicTitle(to) {
            const { title } = to.params
            return `${title}详情`
          },
          usePathKey: true
        }
      },
      {
        path: 'scoringDetails',
        component: 'systemManage/workSum/scoringDetails/index',
        name: 'ScoringDetails',
        meta: { title: '打分明细' }
      },
      {
        path: 'scoringDetails/detail/:id',
        component: 'systemManage/workSum/scoringDetails/detail',
        name: 'ScoringDetailsDetail',
        meta: {
          title: '打分明细详情',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/workSum/scoringDetails/'
        }
      },
      {
        path: 'scoreResults',
        component: 'systemManage/workSum/scoreResults/index',
        name: 'ScoreResults',
        meta: { title: '打分结果' }
      },
      {
        path: 'scoreResults/notScore/:id',
        component: 'systemManage/workSum/scoreResults/notScore',
        name: 'ScoreResultsNotScore',
        meta: {
          title: '未结算情况',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/workSum/scoreResults/'
        }
      },
      {
        path: 'scoreResults/detail/:id',
        component: 'systemManage/workSum/scoreResults/detail',
        name: 'HaveBeenScoredDetail',
        meta: {
          title: '已结算详情',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/workSum/scoreResults/'
        }
      },
      {
        path: 'scoreResults/detail/:detailId/scoringDetailsDetail/:id',
        component: 'systemManage/workSum/scoreResults/scoringDetailsDetail',
        name: 'ScoreResultsScoringDetailsDetail',
        meta: {
          title: '打分明细详情',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/workSum/scoreResults/'
        }
      }
    ]
  }
]

export default router
